/**
 * Created by JustinChow on 2016/11/18.
 */

//const RedisClient = require("./RedisServer").getRedisClient();

var DataProvider = {};
module.exports = DataProvider;

DataProvider.getProps = function (playerId) {
    var props = require("../Configs/Datas/Props.json");
    var propsInfo = {};
    for (var id in props) {
        if (props.hasOwnProperty(id) && props[id].isActive == 1){
            propsInfo[id] = props[id];
        }
    }
    return propsInfo;
    // Todo: Load Active Props Info From DB
    // return {"xxid":{"id":"xxid","level":1}};
};

DataProvider.getTank = function (playerId) {
    return {
        "staticId": "11900001"
    }
};

DataProvider.getBotIds = function () {
    return ["10000001", "10000002"];
};